<include file="./admin-header" />

	<!-- BEGIN PAGE -->
	<div class="page-content">         
		<!-- BEGIN PAGE HEADER-->
		<div class="row">
			<div class="col-md-12">
				<!-- BEGIN PAGE TITLE & BREADCRUMB-->
				<h3 class="page-title">
					{$Think.lang.text_config_management} <small>{$Think.lang.text_config_management_tips_en}</small>
				</h3>
				<ul class="page-breadcrumb breadcrumb">
					<li class="btn-group">
						<a href="{:U('add')}"><button type="button" id="add_config" class="btn blue">
						{$Think.lang.text_config_add} <i class="fa fa-plus"></i>
						</button></a>
					</li>
					<li>
						<i class="fa fa-home"></i>
						<a href="{:U('Index/index')}">{$Think.lang.text_home}</a> 
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="{:U('Config/group')}">{$Think.lang.text_system}</a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li><a href="{:U('index')}">{$Think.lang.text_config_management}</a></li>
				</ul>
				<!-- END PAGE TITLE & BREADCRUMB-->
			</div>
		</div>
		<!-- END PAGE HEADER-->
		<!-- BEGIN PAGE CONTENT-->          
		<div class="row">
			<div class="col-md-12">
				<!-- BEGIN SAMPLE TABLE PORTLET-->
				<div class="portlet box blue">
					<div class="portlet-title">
						<div class="caption"><i class="fa fa-globe"></i>{$Think.lang.text_config_lists}</div>
						<div class="tools">
							<a href="javascript:;" class="collapse"></a>
							<a href="javascript:;" class="reload"></a>
						</div>
					</div>
					<div class="portlet-body">
						<div class="table-toolbar">
							<div class="btn-group toolbar">
								<ul class="mix-filter">
									<li <if condition="empty($config_group)">class="filter active"<else />class="filter"</if> data-filter="all">
										<a href="{:U('index')}">全部</a></li>
									<!-- <volist name="group" id="gp" key="k"> -->
										<li <if condition="$config_group eq $k">class="filter active"<else />class="filter"</if> data-filter="category_{$k}" >
											<a href="{:U('index',array('config_group'=>$k))}">{$gp}</a></li>
									<!-- </volist> -->
								</ul>
							</div>
							<div class="toolbar-right">
								<div class="col-md-4 form-search">
									<form name="searchForm" id="searchForm" action="{:U('index')}" method="post">
									<div class="input-group">
										<input type="text" name="config_name" value="{$config_name}" class="form-control" placeholder="{$Think.lang.error_input_config_name}" />
										<span class="input-group-btn">
											<button class="btn blue" type="submit">{$Think.lang.button_search}</button>
										</span>
									</div>
									</form>
								</div>
							</div>
						</div>
						<div class="table-responsive">
							<form name="myform" id="myform" action="" method="post" class="form-horizontal">
							<table class="table table-striped table-bordered table-hover">
								<thead>
									<tr>
										<th class="table-checkbox">
											<input type="checkbox" id="check_box" class="checkboxes" onclick="selectall('ids[]')" />
										</th>
										<th>{$Think.lang.text_id}</th>
										<th >{$Think.lang.text_config_name}</th>
										<th >{$Think.lang.text_config_title}</th>
										<th >{$Think.lang.text_config_group}</th>
										<th>{$Think.lang.text_config_type}</th>
										<th>{$Think.lang.button_listorder}</th>
										<th>{$Think.lang.text_status}</th>
										<th>{$Think.lang.button_operate}</th>
									</tr>
								</thead>
								<tbody>
									<!-- <volist name="list" id="vo"> -->
									<tr>
										<td><input type="checkbox" name="ids[]" class="checkboxes" value="{$vo['id']}" /></td>
										<td>{$vo['id']}</td>
										<td>{$vo['config_name']}</td>
										<td>{$vo['config_title']}</td>
										<td>{$group[$vo['config_group']]}</td>
										<td>{$type[$vo['config_type']]}</td>
										<td><input type="text" name="sort_order[{$vo['id']}]" value="{$vo['sort_order']}" class="form-control input-xsmall" /></td>
										<td><a href="{:U('status',array('id'=>$vo['id'],'status'=>$vo['status']))}">{$enableornot[$vo['status']]}</a></td>
										<td>
											<a href="{:U('edit',array('id'=>$vo['id']))}" class="btn btn-xs blue btn-editable">
												<i class="fa fa-pencil"></i> {$Think.lang.button_edit}</a> 
											<a href="javascript:;" class="btn btn-xs red btn-removable" onclick="confirm_delete('{:U('delete?id='.$vo['id'])}');">
												<i class="fa fa-times"></i> {$Think.lang.button_delete}</a> 
										</td>
									</tr>
									<!-- </volist> -->
								</tbody>
							</table>
							<!-- <if condition="!empty($list)"> -->
							<div class="table-toolbar">
								<div class="btn-group">
									<button type="submit" name="dosubmit" id="sample_editable_1_new" class="btn red" onclick="myform.action='{:U('delBatch')}'">
									{$Think.lang.button_delete} <i class="fa fa-trash-o"></i>
									</button>
								</div>
								<div class="btn-group">
									<button type="submit" name="dosubmit" id="sample_editable_1_new" class="btn blue" onclick="myform.action='{:U('listorder')}'">
									{$Think.lang.button_listorder} <i class="fa fa-sort"></i>
									</button>
								</div>
								<div class="btn-group pull-right">{$page}</div>
							</div>
							<!-- </if> -->
							</form>
						</div>
					</div>
				</div>
				<!-- END SAMPLE TABLE PORTLET-->
			</div>
		</div>
		<!-- END PAGE CONTENT-->
	</div>
	<!-- END PAGE -->
	<include file="./admin-js" />  
	<script>
		jQuery(document).ready(function() {
		   App.init();
		});
	</script>

<include file="./admin-footer" />